using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using WhsFacebook.Whs.Contracts;

namespace WhsFacebook.Whs.WhsAddin.SettingsControls
{
    public partial class SettingsControlBase : UserControl
    {
        protected readonly log4net.ILog _log;
        protected readonly SingletonServiceFactory _singletonService = new SingletonServiceFactory();
        protected readonly WhsFacebookSettingsTab _tab;

        /// <summary>
        /// for designer only
        /// </summary>
        [Obsolete("for designer only")]
        internal SettingsControlBase()
        {
            InitializeComponent();
        }

        public SettingsControlBase(WhsFacebookSettingsTab tab)
        {
            if (tab == null)
                throw new ArgumentNullException("tab");

            _tab = tab;
            _log = log4net.LogManager.GetLogger(GetType());

            InitializeComponent();
        }
    }
}